#ifndef _extern_device_control_H
#define _extern_device_control_H
#include "at32f4xx.h"
extern void Exterl_Dev_GPIO_Config(void);

extern void Elect_meter_RS485_RX_ENABLE(void);
extern void Elect_meter_RS485_TX_ENABLE(void);

extern void CHARGER1_RS485_RX_ENABLE(void);
extern void CHARGER1_RS485_TX_ENABLE(void);

extern void CHARGER2_RS485_RX_ENABLE(void);
extern void CHARGER2_RS485_TX_ENABLE(void);

extern void CHARGER3_RS485_RX_ENABLE(void);
extern void CHARGER3_RS485_TX_ENABLE(void);

extern void Relay1_CHARGE_ENABLE(void);
extern void Relay1_CHARGE_DISABLE(void);

extern void Relay2_CHARGE_ENABLE(void);
extern void Relay2_CHARGE_DISABLE(void);

extern void Relay3_CHARGE_ENABLE(void);
extern void Relay3_CHARGE_DISABLE(void);

extern void Relay4_CHARGE_ENABLE(void);
extern void Relay4_CHARGE_DISABLE(void);

extern void Relay5_CHARGE_ENABLE(void);
extern void Relay5_CHARGE_DISABLE(void);

extern void Relay6_CHARGE_ENABLE(void);
extern void Relay6_CHARGE_DISABLE(void);


extern void Open_tank1_lock(void);
extern void Open_tank2_lock(void);
extern void Open_tank3_lock(void);
extern void Open_tank4_lock(void);

extern void close_tank1_lock(void);
extern void close_tank2_lock(void);
extern void close_tank3_lock(void);
extern void close_tank4_lock(void);

extern void OPEN_TANK_FAN(u8 channel);
extern void CLOSE_TANK_FAN(u8 channel);
extern void GSM_module_power_ENABLE(void);
extern void GSM_module_power_DISABLE(void);

extern void sys_blackout_ENABLE(void);
extern void sys_blackout_DISENABLE(void);

#endif
